nextcloud-desktop.git
9 months agoMerge pull request #8214 from nextcloud/backport/8201/stable-3.16
Matthieu Gallien [Mon, 28 Apr 2025 07:59:58 +0000 (09:59 +0200)]
Merge pull request #8214 from nextcloud/backport/8201/stable-3.16

[stable-3.16] fix(gui): resize sharee search results list dependent on required space

9 months agofix(gui): resize share search results list dependent on required space
Jyrki Gadinger [Thu, 24 Apr 2025 11:20:46 +0000 (13:20 +0200)]
fix(gui): resize share search results list dependent on required space

In the case there are more search results present than there's space for
it, always display a scrollbar.  Some QtQuick themes don't make it
obvious that the list is scrollable.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
9 months agoMerge pull request #8211 from nextcloud/backport/8200/stable-3.16
Jyrki Gadinger [Mon, 28 Apr 2025 06:23:08 +0000 (08:23 +0200)]
Merge pull request #8211 from nextcloud/backport/8200/stable-3.16

[stable-3.16] fix(assert): remove runtime assert that could crash production builds

9 months agofix(assert): remove runtime assert that could crash production builds
Matthieu Gallien [Thu, 24 Apr 2025 10:09:48 +0000 (12:09 +0200)]
fix(assert): remove runtime assert that could crash production builds

use debug only assert to remove the possibility that we self inflict
crashes on users

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Mon, 28 Apr 2025 03:04:28 +0000 (03:04 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
9 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Sun, 27 Apr 2025 03:01:02 +0000 (03:01 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
9 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Sat, 26 Apr 2025 03:01:50 +0000 (03:01 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
9 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Fri, 25 Apr 2025 03:01:07 +0000 (03:01 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
9 months agoMerge pull request #8199 from nextcloud/backport/8193/stable-3.16
Matthieu Gallien [Thu, 24 Apr 2025 10:10:24 +0000 (12:10 +0200)]
Merge pull request #8199 from nextcloud/backport/8193/stable-3.16

[stable-3.16] Bugfix/do not crash when propagating changes with move or rename

9 months agofix(rename): avoid hitting runtime assert when renaming virtual files
Matthieu Gallien [Wed, 23 Apr 2025 16:26:54 +0000 (18:26 +0200)]
fix(rename): avoid hitting runtime assert when renaming virtual files

when propagating a rename to the child items, we must not make child
items be done from propagator point of view

they will be part of their own propagator item and that will create
issues

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix(rename): handle complex rename/move scenario
Matthieu Gallien [Wed, 23 Apr 2025 09:54:34 +0000 (11:54 +0200)]
fix(rename): handle complex rename/move scenario

ensure we do not leak records and properly update them in client
database

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofeat(discovery): add more info for renamed items
Matthieu Gallien [Tue, 22 Apr 2025 14:03:29 +0000 (16:03 +0200)]
feat(discovery): add more info for renamed items

add original name
add renamed name
add target name

should make it easier to analyze rename operations

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofeat(discovery): add missing inode info for discovered files
Matthieu Gallien [Tue, 22 Apr 2025 14:03:05 +0000 (16:03 +0200)]
feat(discovery): add missing inode info for discovered files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agoperf(discovery): optimize empty strings
Matthieu Gallien [Tue, 22 Apr 2025 14:02:12 +0000 (16:02 +0200)]
perf(discovery): optimize empty strings

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agoMerge pull request #8198 from nextcloud/backport/8195/stable-3.16
Matthieu Gallien [Thu, 24 Apr 2025 09:51:06 +0000 (11:51 +0200)]
Merge pull request #8198 from nextcloud/backport/8195/stable-3.16

[stable-3.16] revert to QFile::remove to remove single files

9 months agofix(filesystem): warn when trying to delete an already deleted file
Matthieu Gallien [Thu, 24 Apr 2025 08:27:41 +0000 (10:27 +0200)]
fix(filesystem): warn when trying to delete an already deleted file

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix(filesystem): still use std::filesystem::remove for folders
Matthieu Gallien [Thu, 24 Apr 2025 08:07:47 +0000 (10:07 +0200)]
fix(filesystem): still use std::filesystem::remove for folders

this API has a way to provide an error when failing to delete a folder

we may want to know why teh folderf ailed to be deleted

QDir::rmdir does not provide any error when failing to delete a folder

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix: Revert "stop using QFile api to delete a single local file"
Matthieu Gallien [Thu, 24 Apr 2025 07:30:58 +0000 (09:30 +0200)]
fix: Revert "stop using QFile api to delete a single local file"

This reverts commit 58d28ab3306a5cd36d990678416375386d9a0db9.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agoMerge pull request #8196 from nextcloud/backport/8182/stable-3.16
Matthieu Gallien [Thu, 24 Apr 2025 09:01:46 +0000 (11:01 +0200)]
Merge pull request #8196 from nextcloud/backport/8182/stable-3.16

[stable-3.16] Bugfix/read only windows folders

9 months agofix(rmdir): switch to another API for folder removal
Matthieu Gallien [Fri, 18 Apr 2025 14:05:07 +0000 (16:05 +0200)]
fix(rmdir): switch to another API for folder removal

current QDir::rmdir API does not provide an error message when failing
to delete

retuse FileSystem::remove that may just works with folders

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix(autotests): do not remove read-only files already removed
Matthieu Gallien [Thu, 17 Apr 2025 17:21:49 +0000 (19:21 +0200)]
fix(autotests): do not remove read-only files already removed

the sync engine will remove invalid items inside read-only folders

not needed to remove them in tests and rather checks that they were
indeed removed

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agorefactor(logs): improve logs around deletions and permissions
Matthieu Gallien [Thu, 17 Apr 2025 17:18:40 +0000 (19:18 +0200)]
refactor(logs): improve logs around deletions and permissions

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix(permissions): solve issues with file permissions automated tests
Matthieu Gallien [Thu, 17 Apr 2025 15:26:12 +0000 (17:26 +0200)]
fix(permissions): solve issues with file permissions automated tests

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofix(read only folder): allow renaming new file inside read-only folders
Matthieu Gallien [Thu, 17 Apr 2025 12:35:02 +0000 (14:35 +0200)]
fix(read only folder): allow renaming new file inside read-only folders

needed to download a new file inside a read-only folder

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofeat(windows native API): use windows specific API for read-only folders
Matthieu Gallien [Thu, 17 Apr 2025 09:57:22 +0000 (11:57 +0200)]
feat(windows native API): use windows specific API for read-only folders

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agoMerge pull request #8197 from nextcloud/backport/8189/stable-3.16
Matthieu Gallien [Thu, 24 Apr 2025 09:01:21 +0000 (11:01 +0200)]
Merge pull request #8197 from nextcloud/backport/8189/stable-3.16

[stable-3.16] Bugfix/filesystem remove file not working

9 months agofix: use safer conversion from QString to filesystem::path
Matthieu Gallien [Tue, 22 Apr 2025 09:16:21 +0000 (11:16 +0200)]
fix: use safer conversion from QString to filesystem::path

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agofeat: better logs when a file cannot be removed
Matthieu Gallien [Tue, 22 Apr 2025 09:14:07 +0000 (11:14 +0200)]
feat: better logs when a file cannot be removed

should log the reason why a file cannot be deleted

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
9 months agoMerge pull request #8194 from nextcloud/backport/8190/stable-3.16
Claudio Cambra [Thu, 24 Apr 2025 07:14:15 +0000 (15:14 +0800)]
Merge pull request #8194 from nextcloud/backport/8190/stable-3.16

[stable-3.16] pin Craft revision to a specific commit

9 months agoci: pin craft revision to a specific commit
Jyrki Gadinger [Tue, 22 Apr 2025 09:54:26 +0000 (11:54 +0200)]
ci: pin craft revision to a specific commit

25.03-nc still has pkg-config in it, which recently got replaced in
Craft by pkgconf

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
9 months agoci: temporarily use custom craftmaster fork
Jyrki Gadinger [Tue, 22 Apr 2025 09:50:23 +0000 (11:50 +0200)]
ci: temporarily use custom craftmaster fork

this is required to make `General`.`CraftRevision` work as intended.

Revert this after
https://invent.kde.org/packaging/craftmaster/-/merge_requests/7 is
merged.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
9 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Wed, 23 Apr 2025 03:01:50 +0000 (03:01 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Tue, 22 Apr 2025 03:03:02 +0000 (03:03 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Mon, 21 Apr 2025 03:02:32 +0000 (03:02 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Sun, 20 Apr 2025 03:01:42 +0000 (03:01 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Sat, 19 Apr 2025 03:02:53 +0000 (03:02 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Fri, 18 Apr 2025 03:02:11 +0000 (03:02 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Thu, 17 Apr 2025 03:02:39 +0000 (03:02 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agobuild: prepare 3.16.3 release.
Camila Ayres [Wed, 16 Apr 2025 08:36:33 +0000 (10:36 +0200)]
build: prepare 3.16.3 release.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agoMerge pull request #8172 from nextcloud/backport/8168/stable-3.16
Matthieu Gallien [Wed, 16 Apr 2025 06:57:46 +0000 (08:57 +0200)]
Merge pull request #8172 from nextcloud/backport/8168/stable-3.16

[stable-3.16] use specific revision for KDE blueprints that matches the craft cache

10 months agoci: use specific revision for KDE blueprints that matches the craft cache
Jyrki Gadinger [Tue, 15 Apr 2025 16:53:14 +0000 (18:53 +0200)]
ci: use specific revision for KDE blueprints that matches the craft cache

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
10 months agofix(l10n): Update translations from Transifex
Nextcloud bot [Wed, 16 Apr 2025 03:04:24 +0000 (03:04 +0000)]
fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoMerge pull request #8169 from nextcloud/backport/8036/stable-3.16
Matthieu Gallien [Tue, 15 Apr 2025 21:00:35 +0000 (23:00 +0200)]
Merge pull request #8169 from nextcloud/backport/8036/stable-3.16

[stable-3.16]  fix(migration): import proxy and general settings from legacy config.

10 months agofix: non-void function does not return a value in all control paths.
Camila Ayres [Tue, 15 Apr 2025 15:03:28 +0000 (17:03 +0200)]
fix: non-void function does not return a value in all control paths.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agofix: remove unused var.
Camila Ayres [Tue, 15 Apr 2025 14:10:16 +0000 (16:10 +0200)]
fix: remove unused var.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agochore: make settings keys const static member of ConfigFile class.
Camila Ayres [Tue, 15 Apr 2025 10:51:42 +0000 (12:51 +0200)]
chore: make settings keys const static member of ConfigFile class.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agochore: rename function, change log level.
Camila Ayres [Tue, 15 Apr 2025 09:52:19 +0000 (11:52 +0200)]
chore: rename function, change log level.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agofix(migration): import proxy and general settings from legacy config.
Camila Ayres [Mon, 17 Mar 2025 18:09:32 +0000 (19:09 +0100)]
fix(migration): import proxy and general settings from legacy config.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agochore(migration): remove duplicated code when copying legacy config to new path.
Camila Ayres [Mon, 17 Mar 2025 16:22:52 +0000 (17:22 +0100)]
chore(migration): remove duplicated code when copying legacy config to new path.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agoMerge pull request #8166 from nextcloud/backport/8160/stable-3.16
Jyrki Gadinger [Tue, 15 Apr 2025 14:49:51 +0000 (16:49 +0200)]
Merge pull request #8166 from nextcloud/backport/8160/stable-3.16

[stable-3.16] fix(msi): allow custom installation directory

10 months agofix(msi): allow custom installation directory
Jyrki Gadinger [Tue, 15 Apr 2025 09:47:49 +0000 (11:47 +0200)]
fix(msi): allow custom installation directory

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
10 months agoMerge pull request #8162 from nextcloud/backport/8156/stable-3.16
Jyrki Gadinger [Tue, 15 Apr 2025 12:59:41 +0000 (14:59 +0200)]
Merge pull request #8162 from nextcloud/backport/8156/stable-3.16

[stable-3.16] fix(theme): correct dark/light mode check on Win10

10 months agofix(theme): correct dark/light mode check on Win10
Jyrki Gadinger [Tue, 15 Apr 2025 08:13:14 +0000 (10:13 +0200)]
fix(theme): correct dark/light mode check on Win10

`Utility::registryGetKeyValue` returns an invalid QVariant should the
key not exist -- which is the case if that switch has never been toggled
before.

--> Fix this by ensuring the QVariant is valid, and only then try to
convert it to a bool.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
10 months agoMerge pull request #8159 from nextcloud/backport/5543/stable-3.16
Jyrki Gadinger [Tue, 15 Apr 2025 12:26:43 +0000 (14:26 +0200)]
Merge pull request #8159 from nextcloud/backport/5543/stable-3.16

[stable-3.16] Use AccountPtr in Account signals instead of raw pointer

10 months agofix(gui): Use AccountPtr in setup wizard
Claudio Cambra [Tue, 15 Apr 2025 08:07:29 +0000 (16:07 +0800)]
fix(gui): Use AccountPtr in setup wizard

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoFix use of saveAccount in networksettings
Claudio Cambra [Thu, 17 Oct 2024 03:32:35 +0000 (11:32 +0800)]
Fix use of saveAccount in networksettings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoUse AccountPtr in testpushnotifications
Claudio Cambra [Thu, 23 Mar 2023 16:47:41 +0000 (17:47 +0100)]
Use AccountPtr in testpushnotifications

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoUse AccountPtr in serverVersionChanged signal instead of raw pointer
Claudio Cambra [Wed, 22 Mar 2023 14:27:17 +0000 (15:27 +0100)]
Use AccountPtr in serverVersionChanged signal instead of raw pointer

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoReplace use of raw pointer in wantsAccountSaved signal with AccountPtr
Claudio Cambra [Wed, 22 Mar 2023 14:26:18 +0000 (15:26 +0100)]
Replace use of raw pointer in wantsAccountSaved signal with AccountPtr

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoEmit AccountPtr from pushNotificationsDisabled in Account rather than raw pointer
Claudio Cambra [Wed, 22 Mar 2023 13:53:06 +0000 (14:53 +0100)]
Emit AccountPtr from pushNotificationsDisabled in Account rather than raw pointer

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoUse AccountPtr in pushNotificationsReady signal in Account rather than raw pointer
Claudio Cambra [Wed, 22 Mar 2023 13:50:48 +0000 (14:50 +0100)]
Use AccountPtr in pushNotificationsReady signal in Account rather than raw pointer

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoMerge pull request #8158 from nextcloud/backport/5288/stable-3.16
Jyrki Gadinger [Tue, 15 Apr 2025 12:12:55 +0000 (14:12 +0200)]
Merge pull request #8158 from nextcloud/backport/5288/stable-3.16

[stable-3.16] Exclude NavigationPaneHelper from non-Windows compile

10 months agoOnly build NavigationPaneHelper on Windows
Claudio Cambra [Mon, 19 Dec 2022 16:05:13 +0000 (17:05 +0100)]
Only build NavigationPaneHelper on Windows

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoIfdef all mentions of navigationpanehelper out of non-Windows builds
Claudio Cambra [Mon, 19 Dec 2022 14:54:55 +0000 (15:54 +0100)]
Ifdef all mentions of navigationpanehelper out of non-Windows builds

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
10 months agoMerge pull request #8163 from nextcloud/backport/8038/stable-3.16
Jyrki Gadinger [Tue, 15 Apr 2025 11:59:05 +0000 (13:59 +0200)]
Merge pull request #8163 from nextcloud/backport/8038/stable-3.16

[stable-3.16] skip single test or whole test file for macOS: they are broken

10 months agoskip single test or whole test file for macOS: they are broken
Matthieu Gallien [Tue, 18 Mar 2025 08:35:13 +0000 (09:35 +0100)]
skip single test or whole test file for macOS: they are broken

would need careful analyze to fix those

until we can get them fixed, better make the other tests be required in
the CI

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoMerge pull request #8157 from nextcloud/backport/8111/stable-3.16
Jyrki Gadinger [Tue, 15 Apr 2025 11:44:05 +0000 (13:44 +0200)]
Merge pull request #8157 from nextcloud/backport/8111/stable-3.16

[stable-3.16] fix(PinState): don't trigger sync when file's PinState changed to Unspecified.

10 months agotest(cfapi): check for spurious attribute changes.
Camila Ayres [Tue, 8 Apr 2025 13:35:55 +0000 (15:35 +0200)]
test(cfapi): check for spurious attribute changes.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agofix(PinState): don't trigger sync when file's PinState changed to Unspecified.
Camila Ayres [Thu, 3 Apr 2025 17:10:15 +0000 (19:10 +0200)]
fix(PinState): don't trigger sync when file's PinState changed to Unspecified.

LibreOffice/Microsoft office might touch the files for unknown reasons,
creating a constant sync state (icon) visible in the parent folder.

This fix excludes PinState changes from a new sync if the trigger
might have been an external application.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agoFix(l10n): Update translations from Transifex
Nextcloud bot [Tue, 15 Apr 2025 03:07:07 +0000 (03:07 +0000)]
Fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoMerge pull request #8153 from nextcloud/backport/8145/stable-3.16
Matthieu Gallien [Mon, 14 Apr 2025 16:59:59 +0000 (18:59 +0200)]
Merge pull request #8153 from nextcloud/backport/8145/stable-3.16

[stable-3.16] simplify deletions of invalid read-only items: do not interrupt sync

10 months agofix: do not interrupt sync when cleaning invalid read-only items
Matthieu Gallien [Fri, 11 Apr 2025 09:33:45 +0000 (11:33 +0200)]
fix: do not interrupt sync when cleaning invalid read-only items

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoFix(l10n): Update translations from Transifex
Nextcloud bot [Mon, 14 Apr 2025 03:03:14 +0000 (03:03 +0000)]
Fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoFix(l10n): Update translations from Transifex
Nextcloud bot [Sun, 13 Apr 2025 03:03:54 +0000 (03:03 +0000)]
Fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoFix(l10n): Update translations from Transifex
Nextcloud bot [Sat, 12 Apr 2025 03:05:50 +0000 (03:05 +0000)]
Fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoFix(l10n): Update translations from Transifex
Nextcloud bot [Fri, 11 Apr 2025 03:04:51 +0000 (03:04 +0000)]
Fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoMerge pull request #8141 from nextcloud/backport/8140/stable-3.16
Matthieu Gallien [Thu, 10 Apr 2025 15:13:54 +0000 (17:13 +0200)]
Merge pull request #8141 from nextcloud/backport/8140/stable-3.16

[stable-3.16] disable use of bulk upload for small files

10 months agodisable use of bulk upload for small files
Matthieu Gallien [Thu, 10 Apr 2025 12:35:11 +0000 (14:35 +0200)]
disable use of bulk upload for small files

this feature causes many issues with impact on users so we prefer to
disable it again

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoMerge pull request #8139 from nextcloud/backport/8048/stable-3.16
Matthieu Gallien [Thu, 10 Apr 2025 13:09:50 +0000 (15:09 +0200)]
Merge pull request #8139 from nextcloud/backport/8048/stable-3.16

[stable-3.16] Bugfix/slow bulk upload

10 months agosimple way to add more logs related to upload progress
Matthieu Gallien [Fri, 4 Apr 2025 15:53:45 +0000 (17:53 +0200)]
simple way to add more logs related to upload progress

will be important to try to see upload performance bottlenecks

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoclean up some no longer needed logs
Matthieu Gallien [Thu, 27 Mar 2025 15:40:07 +0000 (16:40 +0100)]
clean up some no longer needed logs

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agobetter logs to track sending of data during bulk upload
Matthieu Gallien [Thu, 27 Mar 2025 14:43:41 +0000 (15:43 +0100)]
better logs to track sending of data during bulk upload

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoclean code and logs during bulk upload
Matthieu Gallien [Thu, 27 Mar 2025 14:33:00 +0000 (15:33 +0100)]
clean code and logs during bulk upload

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agono need to disable buffering from Qt in POST requests
Matthieu Gallien [Thu, 27 Mar 2025 14:25:49 +0000 (15:25 +0100)]
no need to disable buffering from Qt in POST requests

data of the files are ready in a memory buffer so Qt will not buffer
them anyway

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agouse maximum chunk size to decide the size of a bulk upload request
Matthieu Gallien [Wed, 26 Mar 2025 15:06:53 +0000 (16:06 +0100)]
use maximum chunk size to decide the size of a bulk upload request

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoremove useless log
Matthieu Gallien [Mon, 24 Mar 2025 15:00:58 +0000 (16:00 +0100)]
remove useless log

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agodefine content length header with bulk upload requests
Matthieu Gallien [Wed, 19 Mar 2025 16:44:51 +0000 (17:44 +0100)]
define content length header with bulk upload requests

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agouse memory to buffer the data of the files sent during bulk upload
Matthieu Gallien [Wed, 19 Mar 2025 10:08:09 +0000 (11:08 +0100)]
use memory to buffer the data of the files sent during bulk upload

should help make it faster to send all data

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agodisable buffering when POSTing for bulk upload
Matthieu Gallien [Wed, 19 Mar 2025 10:07:42 +0000 (11:07 +0100)]
disable buffering when POSTing for bulk upload

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoAdd test for syncing with bulk upload when there are errors.
Camila Ayres [Wed, 24 Jan 2024 20:02:19 +0000 (21:02 +0100)]
Add test for syncing with bulk upload when there are errors.

Signed-off-by: Camila Ayres <hello@camilasan.com>
10 months agoChange bulk upload batch size when there is a sync error.
Camila [Tue, 22 Aug 2023 17:25:41 +0000 (19:25 +0200)]
Change bulk upload batch size when there is a sync error.

- Cancel sync after try with smaller bulk upload batch size also throws error.
- Continue syncing when there is no error.
- Remove file from bulk upload black list only when upload succeeded.

Signed-off-by: Camila <hello@camila.codes>
10 months agoMerge pull request #8137 from nextcloud/backport/8094/stable-3.16
Matthieu Gallien [Thu, 10 Apr 2025 12:37:34 +0000 (14:37 +0200)]
Merge pull request #8137 from nextcloud/backport/8094/stable-3.16

[stable-3.16] Bugfix/use newer bulk upload checksum header

10 months agoonly send the md5 custom checksum header when server expects it
Matthieu Gallien [Mon, 31 Mar 2025 09:59:37 +0000 (11:59 +0200)]
only send the md5 custom checksum header when server expects it

server before 32.0.0 release expects a custom header with an MD5
checksum during bulk upload

the header name is: X-File-MD5

see https://github.com/nextcloud/server/pull/51729

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agowith release 32.0.0 md5 custom checksum is removed from bulkupload
Matthieu Gallien [Mon, 31 Mar 2025 13:07:36 +0000 (15:07 +0200)]
with release 32.0.0 md5 custom checksum is removed from bulkupload

makes our fake server require an md5 custom checksum for bulk upload
until version 32.0.0

starting with 32.0.0 this custom checksum must be empty

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agofix format of checksum header that was missing checksum type
Matthieu Gallien [Mon, 31 Mar 2025 10:31:27 +0000 (12:31 +0200)]
fix format of checksum header that was missing checksum type

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agosending header X-File-MD5 that is currently mandatory
Matthieu Gallien [Mon, 24 Mar 2025 14:59:07 +0000 (15:59 +0100)]
sending header X-File-MD5 that is currently mandatory

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoautomated tests of bulk upload needs to check checksums like real
Matthieu Gallien [Mon, 31 Mar 2025 11:03:58 +0000 (13:03 +0200)]
automated tests of bulk upload needs to check checksums like real

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
10 months agoFix(l10n): Update translations from Transifex
Nextcloud bot [Thu, 10 Apr 2025 03:03:42 +0000 (03:03 +0000)]
Fix(l10n): Update translations from Transifex

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
10 months agoMerge pull request #8131 from nextcloud/backport/8095/stable-3.16
Jyrki Gadinger [Wed, 9 Apr 2025 07:26:55 +0000 (09:26 +0200)]
Merge pull request #8131 from nextcloud/backport/8095/stable-3.16

[stable-3.16] fix: try to correct mtime on upsyncs

10 months agofix FileSystem::setModTime on x64 Windows with times > 2038
Jyrki Gadinger [Tue, 8 Apr 2025 11:09:18 +0000 (13:09 +0200)]
fix FileSystem::setModTime on x64 Windows with times > 2038

also removes some unused Utility methods

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>